package cn.ztydata.teachingsystem.heaven.entity;

import java.sql.Timestamp;

/**
 * 问题实体
 *
 * @author lyj
 * @since 2015-3-19
 */
public class Question {
    private Long id; //ID
    private String title; //标题
    private String content; //问题内容
    private Integer choiceness; //是否为精选（0不是  1是）
    private Timestamp create; //创建时间
    private Long creatorId; //创建人编号
    private String creatorName; //创建人姓名
    private String creatorPhoto; //创建人头像
    private Integer role; //创建人角色（0老师  1学生）
    private Long groupId; //群组编号
    private Integer status; //问题状态（0待解决  1已解决）
    private Long pv; //浏览量
    private Long answerCount; //答案数

    public Question(Long id, Integer choiceness, Integer status) {
        this.id = id;
        this.choiceness = choiceness;
        this.status = status;
    }

    public Question(){}

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getChoiceness() {
        return choiceness;
    }

    public void setChoiceness(int choiceness) {
        this.choiceness = choiceness;
    }

    public Timestamp getCreate() {
        return create;
    }

    public void setCreate(Timestamp create) {
        this.create = create;
    }

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        this.creatorId = creatorId;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Long getPv() {
        return pv;
    }

    public void setPv(Long pv) {
        this.pv = pv;
    }

    public Long getAnswerCount() {
        return answerCount;
    }

    public void setAnswerCount(Long answerCount) {
        this.answerCount = answerCount;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getCreatorPhoto() {
        return creatorPhoto;
    }

    public void setCreatorPhoto(String creatorPhoto) {
        this.creatorPhoto = creatorPhoto;
    }
}
